<?php
/**
 * Class for the database entity "movie_recommendation"
 *
 * @author zonk
 */

class MovierecommendationModel {
	
	/**
	 * The id of the movie recommendation
	 * @var int
	 */
	private $movierecommendationid;

	/**
	 * The movie which was rated by the user
	 * @var MovieModel
	 */
	private $movie;
	
	/**
	 * The user which rated the movie
	 * @var UserModel
	 */
	private $user;
	
	/**
	 * The actual rating of the movie from the user
	 * @var int
	 */
	private $rating;
	
	/**
	 * The date the movie was rated by the user
	 * @var string
	 */
	private $date;
	
	/**
	 * @param int $movierecommendationid
	 * @param MovieModel $movie
	 * @param UserModel $user
	 * @param int $rating
	 * @param string $date
	 */
	public function __construct($movierecommendationid, $movie, $user, $rating, $date) {
		$this->movierecommendationid = $movierecommendationid;
		$this->movie = $movie;
		$this->user = $user;
		$this->rating = $rating;
		$this->date = $date;
	}
	
	/**======================================
	 * Getter & Setter
	*=======================================
	*/
	
	/**
	 * 
	 * @return int
	 */
	public function getMovierecommendationid()
	{
	    return $this->movierecommendationid;
	}

	/**
	 * 
	 * @param int $movierecommendationid
	 */
	public function setMovierecommendationid($movierecommendationid)
	{
	    $this->movierecommendationid = $movierecommendationid;
	}

	/**
	 * 
	 * @return MovieModel
	 */
	public function getMovie()
	{
	    return $this->movie;
	}

	/**
	 * 
	 * @param MovieModel $movie
	 */
	public function setMovie($movie)
	{
	    $this->movie = $movie;
	}

	/**
	 * 
	 * @return UserModel
	 */
	public function getUser()
	{
	    return $this->user;
	}

	/**
	 * 
	 * @param UserModel $user
	 */
	public function setUser($user)
	{
	    $this->user = $user;
	}

	/**
	 * 
	 * @return int
	 */
	public function getRating()
	{
	    return $this->rating;
	}

	/**
	 * 
	 * @param int $rating
	 */
	public function setRating($rating)
	{
	    $this->rating = $rating;
	}

	/**
	 * 
	 * @return string
	 */
	public function getDate()
	{
	    return $this->date;
	}

	/**
	 * 
	 * @param string $date
	 */
	public function setDate($date)
	{
	    $this->date = $date;
	}
}